package com.xubeizhi.service;

import com.xubeizhi.common.PageBean;
import com.xubeizhi.common.Result;
import com.xubeizhi.entity.Product;

public interface ProductService {

    Result createProduct(Product product);

    Result soldProduct(Product product);

    Result updateProductById(Product product);

    Result<PageBean<Product>> listProduct(Integer pageNum,Integer pageSize,String status,String removeStatus);

    Result<PageBean<Product>> searchProduct(String productName,String status,String removeStatus);

    Result removeProduct(Product product);
}
